<template>
  <div>
    <div class="box">
      <div class="main">
        <div class="mainBox">
          <router-view />
        </div>
      </div>
      <div>
        <van-tabbar active-color="#ff5000" v-model="active">
          <van-tabbar-item to="/home/index" icon="home-o">首页</van-tabbar-item>
          <van-tabbar-item to="/home/cart" icon="shopping-cart-o">购物车</van-tabbar-item>
          <van-tabbar-item to="/home/orders" icon="newspaper-o">我的订单</van-tabbar-item>
          <van-tabbar-item to="/home/mytaobao" icon="friends-o">我的淘宝</van-tabbar-item>
        </van-tabbar>
      </div>
      <!--<footers class="footer"></footers>-->
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0
    };
  },

  components: {},

  methods: {}
};
</script>

<style scoped>
.box {
  position: absolute;
  width: 100%;
  height: 100%;
}
.main {
  width: 100%;
  height: 100%;
}
.mainBox {
  width: 100%;
  height: 100%;
  padding-bottom: 50px;
  overflow: scroll;
  background-color: rgb(244, 244, 244);
}
.footer {
  position: fixed;
  bottom: 0;
  height: 43px;
  width: 100%;
}
</style>